package com.oimchat;

import com.onlyxiahui.extend.action.spring.boot.config.OnlyDispatcherConfig;
import com.onlyxiahui.extend.action.spring.boot.properties.OnlyActionDispatcherProperties;
import com.onlyxiahui.extend.spring.webflux.dispatcher.config.OnlyDispatcherStartConfig;
import com.onlyxiahui.general.doc.spring.boot.OnlyDocConfiguration;
import com.onlyxiahui.wofa.server.socket.netty.boot.NettyServerStarter;
import com.onlyxiahui.wofa.server.socket.netty.config.NetServerProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.onlyxiahui.aware.basic.extend.spring.context.annotation.AnnotationBeanFullNameGenerator;
import com.onlyxiahui.wofa.server.net.push.starter.EnableDataPush;

@EnableTransactionManagement
@SpringBootApplication(exclude = {
		DruidDataSourceAutoConfigure.class, OnlyDocConfiguration.class }
		,scanBasePackages = {"com.*","only.*"}
		)
@EnableDataPush
@ComponentScan(nameGenerator = AnnotationBeanFullNameGenerator.class)
@Import({NetServerProperties.class, NettyServerStarter.class, OnlyDispatcherConfig.class
, OnlyActionDispatcherProperties.class, OnlyDispatcherStartConfig.class
})
public class SingleApplication {
	public static void main(String[] args) {
		SpringApplication.run(SingleApplication.class, args);
	}
}
